package com.caishi.lkx.distribution.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caishi.lkx.distribution.mapper.DistributionWithdrawalsMapper;
import com.caishi.lkx.distribution.model.DistributionWithdrawals;
import com.caishi.lkx.distribution.service.IDistributionWithdrawalsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class DistributionWithdrawalsServiceImpl extends ServiceImpl<DistributionWithdrawalsMapper, DistributionWithdrawals> implements IDistributionWithdrawalsService {

    private final DistributionWithdrawalsMapper distributionWithdrawalsMapper;

    public DistributionWithdrawalsServiceImpl(DistributionWithdrawalsMapper distributionWithdrawalsMapper) {
        this.distributionWithdrawalsMapper = distributionWithdrawalsMapper;
    }


    // 提现记录列表，筛选条件：提现时间范围、提现人
    @Override
    public Page<DistributionWithdrawals> getList(Page<DistributionWithdrawals> page, Map<String,Object> params) {
        // 分页参数，时间范围参数，提现人参数
        List<DistributionWithdrawals> list=distributionWithdrawalsMapper.getList(page,params);
        page.setRecords(list);
        return page;
    }


}
